/*
 * Copyright (C) 2024 HiHope Open Source Organization.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import { FileInfo } from '@ohos/common';

export enum FileSendingType {
  Images = 1,
  Files = 2,
  Directory = 10
}

export interface FileSelectData {
  sendingType: FileSendingType,
  fileInfos: FileInfo[],
  totalSize?: number
}

/**
 * confirmDialog UI参数,由source端connect接口传入
 * 由于connect阶段数据传输量和速率都有较大限制,因此结构体尽可能精简,满足ux需要即可,完整的文件信息则是在sendFile阶段传入
 */
export interface ConfirmFileInfo {
  type:number,
  title?: string,
  fileCount: number[],// 最多2个元素, 来自图库时,分别记录图片个数和视频个数, 其他情况下仅记录文件总个数
  totalSize: number,
  deviceName?: string
}